home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / boekhoud / finan / BADGER finance v1.0 beta 2.exe / xampplite / phpMyAdmin / libraries / tbl_properties_common.php < prev    next >
PHP Script  |  2006-01-17  |  1KB  |  43 lines

  1. <?php
  2. /* $Id: tbl_properties_common.php,v 1.3 2006/01/17 17:02:31 cybot_tm Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5.  
  6. /**
  7.  * Gets some core libraries
  8.  */
  9. require_once('./libraries/common.lib.php');
  10. require_once('./libraries/bookmark.lib.php');
  11.  
  12. // Check parameters
  13. PMA_checkParameters(array('db', 'table'));
  14.  
  15. if ( PMA_MYSQL_INT_VERSION >= 50002 && $db === 'information_schema' ) {
  16.     $db_is_information_schema = true;
  17. } else {
  18.     $db_is_information_schema = false;
  19. }
  20.  
  21. /**
  22.  * Set parameters for links
  23.  * @deprecated
  24.  */
  25. $url_query = PMA_generate_common_url($db, $table);
  26.  
  27. $url_params['db']    = $db;
  28. $url_params['table'] = $table;
  29.  
  30. /**
  31.  * Defines the urls to return to in case of error in a sql statement
  32.  */
  33. $err_url_0 = $cfg['DefaultTabDatabase'] . PMA_generate_common_url( array( 'db' => $db, ) );
  34. $err_url   = $cfg['DefaultTabTable'] . PMA_generate_common_url( $url_params );
  35.  
  36.  
  37. /**
  38.  * Ensures the database and the table exist (else move to the "parent" script)
  39.  */
  40. require_once('./libraries/db_table_exists.lib.php');
  41.  
  42. ?>
  43.